from django.conf.urls import url

from . import views, views1, views_merchants


urlpatterns = [

    url(r'^login/$', views.UserLoginView.as_view()),
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SmsCodeView.as_view(), name='sms_codes'),
    url(r'^info/$', views.UserModelViewSet.as_view({'get': 'info'})),
    url(r'^aaaa/$', views.UserModelViewSet.as_view({'get': 'aaaa'})),
    url(r'^customeruser/$', views.CustomerUserModelViewSet.as_view({'get': 'list'})),
    url(r'^customeruser/(?P<pk>\d+)/$', views.CustomerUserModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^customeruser_point_record/$', views.CustomerUserModelViewSet.as_view({'get': 'customeruser_point_record'})),
    url(r'^manageruser/$', views.ManagerUserModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^manageruser/(?P<pk>\d+)/$', views.ManagerUserModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^export_manageruser/$', views.ManagerUserModelViewSet.as_view({'get': 'export_manageruser'})),
    url(r'^activity_data/$', views.ActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^activity_data/(?P<pk>\d+)/$', views.ActivityDataModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^launchedgoods/$', views.LaunchedGoodsModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^launchedgoods/(?P<pk>\d+)/$', views.LaunchedGoodsModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    url(r'^order_info/$', views.OrderInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^order_info/(?P<pk>\d+)/$', views.OrderInfoModelViewSet.as_view({'get': 'retrieve', 'delete': 'destroy'})),
    url(r'^export_orderinfo/$', views.OrderInfoModelViewSet.as_view({'get': 'export_orderinfo'})),
    url(r'^update_fund_trans/$', views.OrderInfoModelViewSet.as_view({'post': 'update_fund_trans'})),
    url(r'^activity/$', views.ActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^merchant/$', views.MerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^merchant/(?P<pk>\d+)/$', views.MerchantModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    url(r'^check_merchant/$', views.MerchantModelViewSet.as_view({'post': 'check_merchant'})),
    url(r'^update_logo/$', views.MerchantModelViewSet.as_view({'post': 'update_logo'})),
    url(r'^delete_image/$', views.MerchantModelViewSet.as_view({'post': 'delete_image'})),
    url(r'^enter_level/$', views.MerchantModelViewSet.as_view({'get': 'enter_level'})),
    url(r'^add_image/$', views.MerchantModelViewSet.as_view({'post': 'add_image'})),
    url(r'^open_is_mall/$', views.MerchantModelViewSet.as_view({'get': 'open_is_mall'})),
    url(r'^confirm_is_mall/$', views.MerchantModelViewSet.as_view({'post': 'confirm_is_mall'})),
    url(r'^alidiscountcoupon/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcoupon/(?P<pk>\d+)/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'retrieve', 'put': 'update', 'patch': 'partial_update'})),
    # url(r'^check_template/$', views.AliDiscountCouponModelViewSet.as_view({'post': 'check_template'})),
    # url(r'^update_white_table/$', views.AliDiscountCouponModelViewSet.as_view({'post': 'update_white_table'})),
    url(r'^export_activity_merchant/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'export_activity_merchant'})),
    url(r'^white_table/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'white_table'})),
    url(r'^update_merchant/$', views.AliDiscountCouponModelViewSet.as_view({'post': 'update_merchant'})),
    url(r'^allocation_level/$', views.AliDiscountCouponModelViewSet.as_view({'get': 'allocation_level'})),
    url(r'^allocation_max_number/$', views.AliDiscountCouponModelViewSet.as_view({'post': 'allocation_max_number'})),
    url(r'^alidiscountcouponlevel/$', views.AliDiscountCouponLevelModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponlevel/(?P<pk>\d+)/$', views.AliDiscountCouponLevelModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^export_couponlevel/$', views.AliDiscountCouponLevelModelViewSet.as_view({'get': 'export_couponlevel'})),
    url(r'^transfer_max_number/$', views.AliDiscountCouponLevelModelViewSet.as_view({'post': 'transfer_max_number'})),
    url(r'^batch_update_max_number/$', views.AliDiscountCouponLevelModelViewSet.as_view({'post': 'batch_update_max_number'})),
    url(r'^alidiscountcouponinfo/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponinfo/(?P<pk>\d+)/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^branch_info/$', views.MerchantModelViewSet.as_view({'get': 'branch_info'})),
    # url(r'^goods/$', views.MerchantModelViewSet.as_view({'get': 'goods_info'})),
    url(r'^level/$', views.LevelModelViewSet.as_view({'get': 'list'})),
    url(r'^export_level/$', views.LevelModelViewSet.as_view({'get': 'export_level'})),
    url(r'^export_discountinfo/$', views.AliDiscountCouponInfoModelViewSet.as_view({'get': 'export_discountinfo'})),
    url(r'^export_loanuserinfo/$', views.SpeedLoanUserInfoModelViewSet.as_view({'get': 'export_loanuserinfo'})),
    url(r'^bill/$', views.MerchantBillModelViewSet.as_view({'get': 'list'})),
    url(r'^bill/(?P<pk>\d+)/$', views.MerchantBillModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_merchant_bill/$', views.MerchantBillModelViewSet.as_view({'get': 'export_merchant_bill'})),
    url(r'^goods/$', views.GoodsModelViewSet.as_view({'get': 'list'})),
    url(r'^goods/(?P<pk>\d+)/$', views.GoodsModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^applyment/$', views.GoodsModelViewSet.as_view({'post': 'applyment'})),
    url(r'^upload_image/$', views.GoodsModelViewSet.as_view({'post': 'upload_image'})),
    url(r'^first_audit/$', views.GoodsModelViewSet.as_view({'post': 'first_audit'})),
    url(r'^batch_update_goods_stock/$', views.GoodsModelViewSet.as_view({'post': 'batch_update_goods_stock'})),
    url(r'^category/$', views.GoodsCategoryModelViewSet.as_view({'get': 'list'})),
    url(r'^businesscategory/$', views.MerchantBusinessCategoryModelViewSet.as_view({'get': 'list'})),
    url(r'^platform/$', views.ChannelModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivity/$', views.CashActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivity/(?P<pk>\d+)/$', views.CashActivityModelViewSet.as_view({'get': 'retrieve', 'patch': 'partial_update', 'put': 'update'})),
    url(r'^cashactivitywhitetable/$', views.CashActivityWhiteTableModelViewSet.as_view({'get': 'list'})),
    url(r'^export_cashactivitywhitetable/$', views.CashActivityWhiteTableModelViewSet.as_view({'get': 'export_cashactivitywhitetable'})),
    url(r'^allocation_max_amount/$', views.CashActivityModelViewSet.as_view({'post': 'allocation_max_amount'})),
    url(r'^allocation_max_amount_level/$', views.CashActivityModelViewSet.as_view({'get': 'allocation_max_amount_level'})),
    url(r'^cashactivitylevel/$', views.CashActivityLevelModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitylevel/(?P<pk>\d+)/$', views.CashActivityLevelModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^export_cashactivitylevel/$', views.CashActivityLevelModelViewSet.as_view({'get': 'export_cashactivitylevel'})),
    url(r'^cash_distributed_statistical/$', views.CashActivityLevelModelViewSet.as_view({'get': 'cash_distributed_statistical'})),
    url(r'^cashactivitylevel_tree/$', views.CashActivityLevelModelViewSet.as_view({'get': 'cashactivitylevel_tree'})),
    url(r'^cashactivitydata/$', views.CashActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitydata/(?P<pk>\d+)/$', views.CashActivityDataModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_cashactivitydata/$', views.CashActivityDataModelViewSet.as_view({'get': 'export_cashactivitydata'})),
    url(r'^cashactivitylevelrecord/$', views.CashActivityLevelRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponmerchant/$', views.AliDiscountCouponMerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentactivity/$', views.WaivePaymentActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentactivity/(?P<pk>\d+)/$', views.WaivePaymentActivityModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^waivepaymentmerchant/$', views.WaivePaymentMerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentmerchant/(?P<pk>\d+)/$', views.WaivePaymentMerchantModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_waivepaymentmerchant/$', views.WaivePaymentMerchantModelViewSet.as_view({'get': 'export_waivepaymentmerchant'})),
    url(r'^waivepaymentorder/$', views.WaivePaymentOrderModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentorder/(?P<pk>\d+)/$', views.WaivePaymentOrderModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^customize_activity/$', views.CustomizeActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^customize_activity/(?P<pk>\d+)/$', views.CustomizeActivityModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^customizeactivityflipcards/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'list'})),
    url(r'^customizeactivityflipcards/(?P<pk>\d+)/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_customizeactivityflipcards/$', views.CustomizeActivityFlipCARDSModelViewSet.as_view({'get': 'export_customizeactivityflipcards'})),
    url(r'^customize_white_table/$', views.CustomizeActivityModelViewSet.as_view({'get': 'customize_white_table'})),
    url(r'^settlementrecord/(?P<pk>\d+)/$', views.MerchantSettlementRecordModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^settlementrecord/$', views.MerchantSettlementRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^export_settlementrecord/$', views.MerchantSettlementRecordModelViewSet.as_view({'get': 'export_settlementrecord'})),
    url(r'^merchanteightdraw/$', views.MerchantEightEightDrawModelViewSet.as_view({'get': 'list'})),
    # url(r'^merchanteightdraw/$', views.MerchantEightEightDrawModelViewSet.as_view({'get': 'list'})),
    url(r'^merchanteightdraw/(?P<pk>\d+)/$', views.MerchantEightEightDrawModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_merchanteightdraw/$', views.MerchantEightEightDrawModelViewSet.as_view({'get': 'export_merchanteightdraw'})),
    url(r'^merchantbusinessqrcode/$', views.MerchantBusinessQRCodeModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantbusinessqrcode/(?P<pk>\d+)/$', views.MerchantBusinessQRCodeModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_merchantbusinessqrcode/$', views.MerchantBusinessQRCodeModelViewSet.as_view({'get': 'export_merchantbusinessqrcode'})),
    url(r'^stockusablemerchant/$', views.UpdateStockUsableMerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantreachactivity/$', views.MerchantEightEightActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^merchantreachactivity/(?P<pk>\d+)/$', views.MerchantEightEightActivityModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^merchantreachwhitetable/$', views.MerchantEightEightWhiteTableModelViewSet.as_view({'get': 'list'})),
    url(r'^export_merchantreachwhitetable/$', views.MerchantEightEightWhiteTableModelViewSet.as_view({'get': 'export_merchantreachwhitetable'})),
    url(r'^merchantreachordertable/$', views.MerchantEightEightActivityOrderModelViewSet.as_view({'get': 'list'})),
    url(r'^export_merchantreachordertable/$', views.MerchantEightEightActivityOrderModelViewSet.as_view({'get': 'export_merchantreachordertable'})),

    url(r'^alidiscountcoupon/data/$', views1.AliDiscountCouponModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcoupon/data/(?P<pk>\d+)/$', views1.AliDiscountCouponModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^alidiscountcouponlevel/data/$', views1.AliDiscountCouponLevelModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponlevel/data/(?P<pk>\d+)/$', views1.AliDiscountCouponLevelModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^alidiscountcouponinfo/data/$', views1.AliDiscountCouponInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^alidiscountcouponinfo/data/(?P<pk>\d+)/$', views1.AliDiscountCouponInfoModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^cashactivity/data/$', views1.CashActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivity/data/(?P<pk>\d+)/$', views1.CashActivityModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^cash_distributed_statistical/data/$', views1.CashActivityLevelModelViewSet.as_view({'get': 'cash_distributed_statistical'})),
    url(r'^cashactivitylevel_tree/data/$', views1.CashActivityLevelModelViewSet.as_view({'get': 'cashactivitylevel_tree'})),
    url(r'^cashactivitydata/data/$', views1.CashActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^cashactivitydata/data/(?P<pk>\d+)/$', views1.CashActivityDataModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_cashactivitydata/data/$', views1.CashActivityDataModelViewSet.as_view({'get': 'export_cashactivitydata'})),
    url(r'^bank_qrcode_quest/$', views1.MerchantBankQRCodeQuestModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^bank_qrcode/$', views1.MerchantBankQRCodeModelViewSet.as_view({'get': 'list'})),
    url(r'^bank_qrcode/(?P<pk>\d+)/$', views1.MerchantBankQRCodeModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_bankqrcode/$', views1.MerchantBankQRCodeModelViewSet.as_view({'get': 'export_bankqrcode'})),
    url(r'^bank_qrcode_data/$', views1.MerchantBankQRCodeBindDataModelViewSet.as_view({'get': 'list'})),
    url(r'^export_bankqrcodedata/$', views1.MerchantBankQRCodeBindDataModelViewSet.as_view({'get': 'export_bankqrcodedata'})),
    url(r'^bank_qrcode_statistics/$', views1.MerchantBankQPCodeStatisticsModelViewSet.as_view({'get': 'list'})),
    url(r'^export_bankqrcodestatistics/$', views1.MerchantBankQPCodeStatisticsModelViewSet.as_view({'get': 'export_bankqrcodestatistics'})),

    url(r'^luckyactivity/$', views_merchants.LuckyBagActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^luckyactivity/(?P<pk>\d+)/$', views_merchants.LuckyBagActivityModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^luckyactivitydata/$', views_merchants.LuckyBagChildActivityDataModelViewSet.as_view({'get': 'list'})),
    url(r'^luckyactivitydata/(?P<pk>\d+)/$', views_merchants.LuckyBagChildActivityDataModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^export_luckyactivitydata/$', views_merchants.LuckyBagChildActivityDataModelViewSet.as_view({'get': 'export_luckyactivitydata'})),
    url(r'^luckyrecord/$', views_merchants.LuckyBagRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^luckyrecord/(?P<pk>\d+)/$', views_merchants.LuckyBagRecordModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^nfc_trade/$', views_merchants.MerchantNFCDeviceTradeModelViewSet.as_view({'get': 'list'})),
    url(r'^export_nfc_trade/$', views_merchants.MerchantNFCDeviceTradeModelViewSet.as_view({'get': 'export_nfc_trade'})),

]